home *** CD-ROM | disk | FTP | other *** search
- // Filename: DIB.H
- // "DIB" Generated by Visual Programmer.
- // Author: Blue Sky
-
- //
- // ***********************************************************************
- // Do not add code here.
- //
- // This file is maintained by the Switch-It Module.
- // As you make changes in your applications design,
- // this file is automatically updated, therefore you never modify this file.
- //
- //
- //
- // For more information,
- // see the section "How code is generated" in the documentation.
- //
- // ***********************************************************************
- //
-
- // ****************************************************************************
- // Windows messages for WinHelp support
- // ****************************************************************************
-
- #ifndef WM_COMMANDHELP
- #define WM_COMMANDHELP 0x0365
- #endif
-
- #ifndef WM_HELPHITTEST
- #define WM_HELPHITTEST 0x0366
- #endif
-
- // ****************************************************************************
- // WPARAM for registered Windows message
- // ****************************************************************************
-
- #define SIM_CTRLPAINT 1
- #define SIM_CTLCOLOR 2
- #define SIM_GETCHILDDIALOG 3
- #define SIM_SETCHILDDIALOG 4
- #define SIM_SIZEDIALOG 5
- #define SIM_LOADACCELTABLE 6
- #define SIM_RELOADACCELERATORS 7
-
- typedef struct tagBLDSetChildDialog
- {
- CWnd *pWnd;
- UINT nStyle;
- }BLDSetChildDialog;
- typedef BLDSetChildDialog FAR *LPBLDSetChildDialog;
-
- // ****************************************************************************
- // Types for Graphic Buttons
- // ****************************************************************************
-
- #define SIM_GRAPHIC 1
- #define SIM_GRAPHIC_BKGRND 2
- #define SIM_GRAPHIC_3D 3
-
-
- // To support name from previous version.
- #define CWinMakerFrameWnd Cwm_MainBaseWnd
- #define CWinMakerApp Cwm_BaseApplication
- #define CWinMakerClientDlg CSimClientDlg
-
-
- #if !defined(THISISBLDRC)
-
- #include <AFXEXT.H>
- #endif
-
-
- // Give access to variables in all code modules
- extern DWORD dwDialogProp;
- extern BOOL b256Color;
- extern BOOL bPreCreateCheck;
- extern HINSTANCE hBMPInst;
- extern UINT wPrivateMessage;
-
- #define CLIENTSTRIP WS_MINIMIZE|WS_MAXIMIZE|WS_CAPTION|WS_BORDER|WS_DLGFRAME|WS_SYSMENU|WS_POPUP|WS_THICKFRAME|DS_MODALFRAME|DS_SYSMODAL|WS_VISIBLE
- #define TOOLBARSTRIP WS_MINIMIZE|WS_MAXIMIZE|WS_POPUP|DS_SYSMODAL|WS_VISIBLE
-
- typedef struct
- {
- long style;
- // MORE ...
- } BLD_DLGTEMPLATE;
-
- typedef BLD_DLGTEMPLATE far *LPBLD_DLGTEMPLATE;
-
- #define BLDTOOLBARSTYLEDEFAULT (UINT)0xffff
-
-
-
- // Constants for error message strings
- #define BLD_CannotRun 4000
- #define BLD_CannotCreate 4001
- #define BLD_CannotLoadMenu 4002
- #define BLD_CannotLoadIcon 4003
- #define BLD_CannotLoadBitmap 4004
- #define BLD_CannotCreateWindow 4005
-
- // User defined constant ID's
-
- #define IDM_Red 10001
- #define IDM_Blue 10002
- #define IDM_Own 10003
- #define IDM_About 10004
-
- // Resource IDs for menus and accelerators
- #define IDR_DIB 2
-
-
- // Switch-It Module automatic generated constant ID's
-
- #define WMPDEBUG
-
-
- // Help ID's used by functions
-
-
- #if !defined(THISISBLDRC)
-
- // Switch-It Module class definitions.
- class Cwm_BaseApplication;
- class Cwm_MainBaseWnd;
- class Cwm_Application;
- class Cwm_MainWnd;
- class CSimModelessDlg;
- class CSimModalDlg;
- class CSimClientDlg;
- class CSimToolbar;
- class Cwm_AboutBaseDlg;
- class Cwm_AboutDlg;
- class Cwm_DIBClientBaseDlg;
- class Cwm_DIBClientDlg;
-
- BOOL BLDSwitchMenu(CWnd *,char *);
- HMENU BLDLoadMenu(CWnd *,int,HMENU *,BOOL);
- BOOL BLDLoadAccelerators(CWnd *,int);
- HBITMAP BLDLoadBitmap(HINSTANCE,char *);
-
- Cwm_MainWnd* BLDMainCreateWnd(CWnd *pAParent);
- BOOL BLDCreateClientControlsDef(char *,CSimClientDlg *);
- BOOL BLDCreateClientControls(char *,CSimClientDlg *);
-
-
- int BLDDisplayMessageDef(HWND,UINT,char *,int);
- BOOL BLDDrawBitmapDef(LPDRAWITEMSTRUCT,char *,BOOL);
- BOOL BLDDrawIconDef(LPDRAWITEMSTRUCT,char *);
- BOOL BLDSendMDIMessageDef(CWnd *,UINT,int);
- BOOL BLDDrawBkgndIconDef(HWND,LPPAINTSTRUCT ,char *,int);
- BOOL BLDDrawBkgndBitmapDef(HWND,LPPAINTSTRUCT,char *,int,BOOL,BOOL,int,int);
- BOOL BLDDrawAutoStateDef(LPDRAWITEMSTRUCT,char *,BOOL,BOOL);
- BOOL BLDDrawStateBitmapDef(LPDRAWITEMSTRUCT,char *,char *,char *,char *,BOOL);
- BOOL BLDDrawStateIconDef(LPDRAWITEMSTRUCT,char *,char *,char *,char *);
- void BLDFindCtrlsRightBottomDef(CWnd *,int *,int *);
- void BLDCalcScrollRangesDef(CWnd *,int *,int *,int,int,int,int);
- BOOL BLDScrollDlgDef(CWnd *,UINT,int,int,int,int,int,int,int,int,BOOL,int *,int *);
- BOOL BLDSizeDlgDef(CWnd *,int,int);
- BOOL BLDCheckF1HelpKeyDef(BOOL);
- BOOL BLDDrawItemDef(HWND,LPDRAWITEMSTRUCT);
- static BOOL BLDMoveTo(HDC,int,int);
- static BOOL BLDDrawFrame(HDC,int,int,int,int,BOOL);
- BOOL BLDBitmapToScreenDef(HDC,char *,int,int,int,int,DWORD,BOOL);
- HBRUSH BLDGetGlobalBrushDef(HWND hCtrl,HDC hDC);
-
- int BLDDisplayMessage(HWND,UINT,char *,int);
- BOOL BLDDrawBitmap(LPDRAWITEMSTRUCT,char *,BOOL);
- BOOL BLDDrawIcon(LPDRAWITEMSTRUCT,char *);
- BOOL BLDSendMDIMessage(CWnd *,UINT,int);
- BOOL BLDDrawBkgndIcon(HWND,LPPAINTSTRUCT ,char *,int);
- BOOL BLDDrawBkgndBitmap(HWND,LPPAINTSTRUCT ,char *,int,BOOL,BOOL,int,int);
- BOOL BLDDrawAutoState(LPDRAWITEMSTRUCT,char *,BOOL,BOOL);
- BOOL BLDDrawStateBitmap(LPDRAWITEMSTRUCT,char *,char *,char *,char *,BOOL);
- void BLDFindCtrlsRightBottom(CWnd *,int *,int *);
- BOOL BLDScrollDlg(CWnd *,UINT,int,int,int,int,int,int,int,int,BOOL,int *,int *);
- BOOL BLDSizeDlg(CWnd *,int,int);
- BOOL BLDCheckF1HelpKey(BOOL);
- BOOL BLDDrawItem(HWND,LPDRAWITEMSTRUCT);
- BOOL BLDBitmapToScreen(HDC,char *,int,int,int,int,DWORD,BOOL);
- BOOL BLDDrawStateIcon(LPDRAWITEMSTRUCT,char *,char *,char *,char *);
- void BLDCalcScrollRanges(CWnd *,int *,int *,int,int,int,int);
- int BLD_AboutDlgFunc(CWnd * pWnd);
- BOOL BLD_RedUDCFunc (CWnd *pWnd);
- BOOL BLD_BlueUDCFunc (CWnd *pWnd);
- BOOL BLD_OwnUDCFunc (CWnd *pWnd);
- CWnd* BLD_DIBClientClFunc(CWnd *pWnd);
-
- #endif
-
-
-
- // *********************************************************
- // ERROR MESSAGE HANDLING (Definitions can be overruled.)
- // *********************************************************
-
- #ifndef BLDMAINCAPTION
- #define BLDMAINCAPTION "DIB"
- #endif
-
- #ifndef BLDLOADERROR
- #define BLDLOADERROR "Cannot load string."
- #endif
-
-
-
- // Switch-It Module color definitions
-
- #define BLD_BLACK 0X00000000L
- #define BLD_WHITE 0X00FFFFFFL
- #define BLD_GRAY 0X007F7F7FL
- #define BLD_LTGRAY 0X00C0C0C0L
-
-
- // Switch-It Module definitions
-
- #define BLD_MAXPATH 256
-
- // Switch-It Module global dialog box properties
-
- #define BLDGRAY_DIALOGBOX 0x00000001L
- #define BLDGRAY_BUTTON 0x00000002L
- #define BLDGRAY_COMBOBOX 0x00000004L
- #define BLDGRAY_LISTBOX 0x00000008L
- #define BLDGRAY_EDIT 0x00000010L
- #define BLDGRAY_SCROLLBAR 0x00000020L
- #define BLDGRAY_TEXT 0x00000040L
-
-
- #if !defined(THISISBLDRC)
-
- #include "SERVICE.WMH"
- #include "DIB.WMH"
-
-
- extern Cwm_Application TheApp;
-
- #endif
-
-